import UserService from '../service/UserService';
import { Result } from '../utils';

class UserController {
  private service: UserService = new UserService();

  login = async (ctx) => {
    ctx.body = await this.service.login();
  };

  ping = async (ctx) => {
    console.log(ctx);
    ctx.body = Result.success({ a: 1 });
  };

  getUserInfoById = async (ctx) => {
    ctx.body = await this.service.getUserInfoById();
  };
}

export default new UserController();
